package com.internetCafes.spms.web.sys.service.impl;

import com.internetCafes.spms.web.sys.model.AreaInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.internetCafes.spms.web.sys.mapper.AreaInfoMapper;
import com.internetCafes.spms.web.sys.service.AreaInfoService;



@Service("areaInfoService")
public class AreaInfoServiceImpl implements AreaInfoService {
	@Autowired
	private AreaInfoMapper areaInfoDao;
	
	@Override
	public AreaInfo queryObject(Long id){
		return areaInfoDao.queryObject(id);
	}
	
	@Override
	public List<AreaInfo> queryList(Map<String, Object> map){
		return areaInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return areaInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(AreaInfo areaInfo){
		areaInfoDao.save(areaInfo);
	}
	
	@Override
	public void update(AreaInfo areaInfo){
		areaInfoDao.update(areaInfo);
	}
	
	@Override
	public void delete(Long id){
		areaInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		areaInfoDao.deleteBatch(ids);
	}
	
}
